package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo4 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<>();
        c.add("one");
        //c.add(123);

        Collection<Integer> cc = new ArrayList<>();
        cc.add(123);
        //cc.add('115');
    }
}
